﻿using System;
using System.Windows.Forms;

namespace Map_Creator
{
    public partial class NewGridControl : Form
    {
        public int Y;
        public int X;
        public int tileSize;
        public string ChoosenName;

        private static int count;

        public NewGridControl()
        {
            count++;
            InitializeComponent();
            NameTextBox.Text = "Map" + count.ToString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            X = (int)XVal.Value;
            Y = (int)YVal.Value;
            tileSize = (int) TileSizeNumeric.Value;
            ChoosenName = NameTextBox.Text;
            DialogResult = DialogResult.OK;
            Close();
        }
    }
}